﻿<Page x:Class="JDKD.BMCS.AppUI.AreaPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      mc:Ignorable="d"
	Title="FrontAeraPage" Width="452" Loaded="Page_Loaded" KeepAlive="False">

        <Grid Name="RootGrid">
                <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Button Content="挡板抬起" HorizontalAlignment="Left"  Name="RaiseButton" VerticalAlignment="Center" FontSize="24" Margin="16" Grid.Row="4" Background="{x:Null}" Foreground="AliceBlue" Click="RaiseButton_Click" Visibility="{Binding CurrentArea.RaiseVisibility}" />
                <Button Content="挡板压下" HorizontalAlignment="Right"  Name="FallButton" VerticalAlignment="Center" FontSize="24" Grid.Column="1" Margin="16" Grid.Row="4" Background="{x:Null}" Foreground="AliceBlue" Click="FallButton_Click" Visibility="{Binding CurrentArea.RaiseVisibility}"/>
                <TextBlock HorizontalAlignment="Left" Margin="16" Name="textBlock1" Text="流" VerticalAlignment="Center" Background="{x:Null}" Foreground="AliceBlue" FontSize="24" />
                <TextBlock HorizontalAlignment="Right" Margin="16" Name="textBlock2" Text="{Binding CurrentArea.ChannelId}" VerticalAlignment="Center" Grid.Column="1" Background="{x:Null}" Foreground="AliceBlue" FontSize="36" />
                <TextBlock Grid.Row="1" HorizontalAlignment="Left" Margin="16" Name="textBlock3" Text="步幅" VerticalAlignment="Center" FontSize="24" Background="{x:Null}" Foreground="AliceBlue" />
                <Image Grid.Row="2" Height="64" HorizontalAlignment="Left" Margin="16,8" Name="LeftButton" Stretch="Fill" VerticalAlignment="Center" Width="64" Source="/JDKD.BMCS.AppUI;component/Images/GreenLeft.png" MouseDown="LeftButton_MouseDown" />
                <Image Grid.Column="1" Grid.Row="2" Height="64" HorizontalAlignment="Right" Margin="16,8" Name="RightButton" Stretch="Fill" VerticalAlignment="Center" Width="64" Source="/JDKD.BMCS.AppUI;component/Images/GreenRight.png" MouseDown="RightButton_MouseDown" />
                <Image Grid.Row="3" Height="64" HorizontalAlignment="Left" Margin="16,8" Name="UpButton" Stretch="Fill" VerticalAlignment="Center" Width="64" Source="/JDKD.BMCS.AppUI;component/Images/GreenUp.png" MouseDown="UpButton_MouseDown" />
                <Image Grid.Column="1" Grid.Row="3" Height="64" HorizontalAlignment="Right" Margin="16,8" Name="DownButton" Stretch="Fill" VerticalAlignment="Center" Width="64" Source="/JDKD.BMCS.AppUI;component/Images/GreenDown.png" MouseDown="DownButton_MouseDown" />
                <ComboBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right" Margin="16" Name="StepComboBox" VerticalAlignment="Center" Width="100" FontSize="24" IsReadOnly="True" Background="{x:Null}" Foreground="Black"  SelectedValue="{Binding CurrentStep}"/>
                <Button Content="翻钢启动" Grid.Row="5" HorizontalAlignment="Left" Name="ShiftButton" VerticalAlignment="Center" FontSize="24" Background="{x:Null}" Foreground="AliceBlue" Margin="16" Click="ShiftButton_Click" Visibility="{Binding CurrentArea.ShiftVisibility}"/>
                <Button Content="翻钢复位" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Right" Name="ResetButton" VerticalAlignment="Center" FontSize="24" Background="{x:Null}" Foreground="AliceBlue" Margin="16" Click="ResetButton_Click" Visibility="{Binding CurrentArea.ShiftVisibility}"/>
        </Grid>
</Page>